import { GLoadedButton } from "../../../../com/mui/controls/GLoadedButton";
import { ItemData } from "../../resource/info/ItemData";
import { ToolTipsManager } from "../../../../com/mui/manager/ToolTipsManager";
//class ItemButton
    
    export  class ItemButton extends GLoadedButton
    {
        constructor()
        {
            super();
            this.label = "";
            return;
        }

        public /* override */ get toolTipData()
        {
            if (this._itemData) 
            {
                return this._itemData.getToolTipData(0);
            }
            return super.toolTipData;
        }

        public set itemData(arg1: ItemData)
        {
            this._itemData = arg1;
            if (this.toolTipData) 
            {
                ToolTipsManager.register(this);
            }
            else 
            {
                ToolTipsManager.unregister(this);
            }
            return;
        }

        /* internal */ /* var */_itemData: ItemData;
    }
